package com.tourlaid.mamagerment.action.wx

import com.tourlaid.mamagerment.ao.wx.PublishThoughtAo
import com.tourlaid.mamagerment.entity.ResponseData
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import javax.annotation.Resource

/**
 * Created by xiaoyongge on 2017/9/23.
 */
@RestController
@RequestMapping("/tld/admin/pthought")
class PublishThoughtAction {

    @Resource
    private val publishThoughtAo: PublishThoughtAo? = null

    @RequestMapping("/publish.json")
    fun publish(thought: String, base64Datas: String): ResponseData<String> {
        publishThoughtAo!!.publish(thought, base64Datas)
        return ResponseData<String>()
    }
}